package com.itheima.mm.dao;

import com.itheima.mm.entity.QueryPageBean;
import com.itheima.mm.pojo.Tag;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TagDao {
    List<Tag> findListByCourseId(@Param("id") Integer id);

    List<Tag> findListByQuestionId(@Param("id") Integer id);

    List<Tag> findListByPage(@Param("queryPageBean") QueryPageBean queryPageBean);

    Long findTotal(@Param("queryPageBean") QueryPageBean queryPageBean);

    void delete(@Param("id") Integer tagId);

    void deleteQusTag(@Param("id")Integer tagId);

    void add(@Param("tag") Tag tag);
}
